package com.wac.blog.utils;

import java.sql.Timestamp;
import java.util.Date;
import java.util.UUID;

public class Utils {
    static boolean printFlag=true;

    public static String getUuid(){
        return UUID.randomUUID().toString().replace("-","" );
    }

    public static Timestamp getTime(){
        return new Timestamp(new Date().getTime());
    }

    public static void print(String msg){
        if (printFlag=true){
            System.out.println("wac=>"+msg);
        }
    }
}
